<?php
#### สคริ๊ปนี้ใช้ในการเช็ค ว่าล็อกอินหรือยัง ให้นำสคริ๊ปนี้ไปไว้ที่หน้าที่คุณต้องการให้เช็ค ####
if(!$_SESSION['login_true']) {
//  url=index.php คำสั่งนี้จะให้ไปหน้าที่จะต้องกรอก user,pwd ถ้าอยู่โฟล์เดอร์อื่นให้เรียกให้ถูกนะครับ
echo "<meta http-equiv='refresh' content=0; url=".site_url()."/template_u/register/signup'>" ;
exit() ;
}
### จบการเช็ค ###
?>
<html>
<head>
<title>สวัสดีครับสมาชิกใหม่ และ สมาชิกเก่าทุกๆท่าน</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="575" border="0" align="center" cellpadding="0" cellspacing="0"><tr>
    <td width="10">&nbsp;</td>
    <td valign="top"><div align="center"><br>
        <img src="<?=base_url()?>assets/images/member_important.gif" width="200" height="50"> 
        <?php
        $login_true = $_SESSION['login_true'];
include(APPPATH."views/fontend/register/config.inc.php");
$result = mysql_query("select * from member where user='$login_true'") or die ("Err Can not to result") ;
$dbarr = mysql_fetch_array($result) ;
?>
        <br>
        <table width="575" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr> 
            <td><div align="center"> 
                <p><font color="#000000" size="2" face="MS Sans Serif, Tahoma, sans-serif"><strong><img src="<?=base_url()?>assets/images/w1.gif" width="19" height="19" align="absmiddle"> 
                  สวัสดีครับคุณ &nbsp;<?php echo $dbarr['name'] ; ?>&nbsp;<img src="<?=base_url()?>assets/images/w1.gif" width="19" height="19" align="absmiddle"></strong></font></p>
              </div>
              <blockquote> 
                <div align="left"> 
                  <p><img src="<?=base_url()?>assets/images/great.gif" width="13" height="11"> <font color="#FF3300" size="3" face="MS Sans Serif, Tahoma, sans-serif"><u>รายละเอียดส่วนตัวของคุณ 
                    </u></font></p>
                </div>
              </blockquote>
            
                <div align="left">
                  
                <table border="0" align="center" cellpadding="3" cellspacing="0">
                  <tr> 
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif">ชื่อ-นามสกุล 
                      : </font></td>
                    <td><div align="left"></div>
                      <font size="2" face="MS Sans Serif, Tahoma, sans-serif"><?php echo $dbarr['name'] ; ?></font></td>
                    <td colspan="2"> <font face="MS Sans Serif, Tahoma, sans-serif"><font size="2"></font></font></td>
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif">หมายเลขสมาชิก</font></td>
                    <td><div align="left"></div>
                      <font size="2" face="MS Sans Serif, Tahoma, sans-serif"><?php echo $dbarr['member_id'] ; ?></font></td>
                  </tr>
                  <tr> 
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif">วัน/เดือน/ปีเกิด</font></td>
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><?php echo $dbarr['date']."/".$dbarr['month']."/".$dbarr['year']  ; ?></font></td>
                    <td colspan="2"><font size="2" face="MS Sans Serif, Tahoma, sans-serif">&nbsp;</font></td>
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif">อายุ</font></td>
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><?php echo $dbarr['age'] ; ?></font></td>
                  </tr>
                  <tr> 
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif">เพศ</font></td>
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><?php echo $dbarr['sex'] ; ?></font></td>
                    <td colspan="2"><font size="2" face="MS Sans Serif, Tahoma, sans-serif">&nbsp;</font></td>
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif">email</font></td>
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><?php echo $dbarr['email'] ;?></font></td>
                  <tr> 
                    <td colspan="6"><div align="center"><font size="2" face="MS Sans Serif, Tahoma, sans-serif">..............................................................................................................................................</font></div></td>
                  <tr> 
                    <td colspan="6"><p><img src="<?=base_url()?>assets/images/home0.gif" width="16" height="15"> 
                        <font color="#0000FF" size="3" face="MS Sans Serif, Tahoma, sans-serif"><u><font color="#CC00FF">ที่อยู่ในการติดต่อ</font></u> 
                        <br>
                        <br>
                        </font></p></td>
                  </tr>
                  <tr> 
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif">บ้านเลขที่ 
                      </font></td>
                    <td colspan="5"><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><?php echo $dbarr['address'] ; ?></font></td>
                  </tr>
                  <tr> 
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif">อำเภอ</font></td>
                    <td colspan="5"><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><?php echo $dbarr['amper'] ; ?></font></td>
                  </tr>
                  <tr> 
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif">จังหวัด</font></td>
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><?php echo $dbarr['province'] ; ?></font></td>
                    <td width="50">&nbsp;</td>
                    <td><div align="left"><font size="2" face="MS Sans Serif, Tahoma, sans-serif">รหัสไปรษณีย์</font></div></td>
                    <td colspan="2"><div align="left"><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><?php echo $dbarr['zipcode'] ; ?></font></div></td>
                  </tr>
                  <tr> 
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif">เบอร์โทรศัพท์</font></td>
                    <td colspan="5"><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><?php echo $dbarr['phone'] ;?></font></td>
                  </tr>
                  <tr> 
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif">การศึกษา</font></td>
                    <td><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><?php echo $dbarr['education'] ; ?></font></td>
                    <td>&nbsp;</td>
                    <td><div align="left"><font size="2" face="MS Sans Serif, Tahoma, sans-serif">อาชีพ</font></div></td>
                    <td colspan="2"> <div align="left"><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><?php echo $dbarr['work'] ; ?></font></div></td>
                  </tr>
                </table>
                <p align="center"><a href="../register/logout.php"><img src="<?=base_url()?>assets/images/logout.gif" width="58" height="22" border="0" align="absbottom"></a> 
                  &nbsp;&nbsp; <img src="<?=base_url()?>assets/images/rubble.gif" width="18" height="18" align="absbottom"><font size="2" face="MS Sans Serif, Tahoma, sans-serif"><a href="<?=site_url()?>/template_u/register/member_edit.php">แก้ไขรายละเอียด</a></font></p>
              </div>
           
              <div align="left"></div>
              <div align="left"></div>
              <div align="center"></div>
              <div align="center"></div></td>
          </tr>
        </table>
</div></td>
  </tr>
</table>
</body>
</html>
